package com.evenmo.pojo;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Component;
/**
 * LayUI分页封装数据集合
 * @author Administrator
 *
 * @param <T> 结果集类型
 */
@Component
public class LayUIResultMap<T> implements Serializable{
	
/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
private List<T> data;//结果集数据
private Long count;//总数据量
private Integer code;//结果状态
private String msg;//返回信息
public List<T> getData() {
	return data;
}
public void setData(List<T> data) {
	this.data = data;
}
public Long getCount() {
	return count;
}
public void setCount(Long count) {
	this.count = count;
}
public Integer getCode() {
	return code;
}
public void setCode(Integer code) {
	this.code = code;
}
public String getMsg() {
	return msg;
}
public void setMsg(String msg) {
	this.msg = msg;
}
public LayUIResultMap(List<T> data, Long count, Integer code, String msg) {
	super();
	this.data = data;
	this.count = count;
	this.code = code;
	this.msg = msg;
}
public LayUIResultMap() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "LayUIResultMap [data=" + data + ", count=" + count + ", code=" + code + ", msg=" + msg + "]";
}


}
